import qs from 'qs'
import { useLocation } from 'react-router-dom'

export default function RankingDetail(props) {
  const lc = useLocation()
  const query = lc.search.split('?')[1]
  const obj = qs.parse(query)
  // key=value&key=value
  /* const arr = query.split('&')
  const obj = {}
  for (let i = 0; i < arr.length; i++) {
    const a = arr[i].split('=')
    obj[a[0]] = a[1]
  } */
  return <div>RankingDetail:{obj.id}</div>
}
